package com.lwlk.zdk.mapper.task;

import com.lwlk.zdk.model.task.pwTaskRegionAssessmentStatistics;
import com.lwlk.zdk.model.task.pwTaskRegionAssessmentStatisticsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface pwTaskRegionAssessmentStatisticsMapper {
        int countByExample(pwTaskRegionAssessmentStatisticsExample example);

        int deleteByExample(pwTaskRegionAssessmentStatisticsExample example);

        int insert(pwTaskRegionAssessmentStatistics record);

        int insertSelective(pwTaskRegionAssessmentStatistics record);

        List<pwTaskRegionAssessmentStatistics> selectByExample(pwTaskRegionAssessmentStatisticsExample example);

        int updateByExampleSelective(@Param("record") pwTaskRegionAssessmentStatistics record, @Param("example") pwTaskRegionAssessmentStatisticsExample example);

        int updateByExample(@Param("record") pwTaskRegionAssessmentStatistics record, @Param("example") pwTaskRegionAssessmentStatisticsExample example);

        int insertRegionNull(@Param("admdivcode") String admdivcode, @Param("areaCode") String areaCode,@Param("assessPeriod")String assessPeriod,@Param("describe") String describe);

        List<Map<String,Object>> selectDim(@Param("type") Integer type,@Param("TheInspectionTime") String TheInspectionTime,@Param("assessGradeId")Integer assessGradeId,@Param("status")Integer status,@Param("areaCode")String areaCode);

        List<Map<String, Object>> selectStatus(@Param("id") Integer id, @Param("theInspectionTime") String theInspectionTime, @Param("assessPeriod") String assessPeriod);

        int updateRanking(@Param("pId") int pId, @Param("rank") int rank);
}